package com.ny.wlw;

public class Ooo {
    private String name;
    private  int age ;

    public static void play() {
    }

    public void setAge(int age ){
        if(age<0){
            System.out.println("你输入的年龄是不对的");
        }
        else{
            this.age=age;

        }
    }
    public int getAge(){
        return age ;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }
}
